package com.fenxiangtech.mall.dao;

import com.fenxiangtech.mall.model.Cart;
import com.fenxiangtech.mall.model.qc.CartQC;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import java.util.List;

@Mapper
@Repository
public interface CartDAO{

    int insertCart(Cart cart);

    int updateCart(Cart cart);

    List<Cart> listCart(CartQC cart);

    Long countCart(CartQC cart);

    int insertBatch(@Param("list") List<Cart> carts);

    int deleteCartById(Long id);

}